package com.wyz.socket.core.base;

import java.nio.channels.SocketChannel;

public abstract class IoTask {

    public final SocketChannel channel;
    public final int ops;

    public IoTask(SocketChannel channel, int ops) {
        this.channel = channel;
        this.ops = ops;
    }

    public abstract boolean onProcess() ;

    public abstract void onThrowException(Throwable throwable) ;
}
